b = set()
y = set()
z = set()
for l in open('../data/bingmingfromlog.tmp','r').readlines():
    b.add(l.strip())
for l in open('../data/yaopinfromlog.tmp','r').readlines():
    y.add(l.strip())
for l in open('../data/zhengzhuangfromlog.tmp','r').readlines():
    z.add(l.strip())

fout = open('../data/tasks.tmp','w')
count = 0
for item in b:
    fout.write('b'+str(count)+'\t'+item+'\n')
    count+=1

count = 0
for item in y:
    fout.write('y'+str(count)+'\t'+item+'\n')
    count+=1

count = 0
for item in z:
    fout.write('z'+str(count)+'\t'+item+'\n')
    count+=1